import request from '@/utils/request'

// 查询年龄性别精准客流列表
export function listAgeAndGenderDistribution(query) {
  return request({
    url: '/energize/ageAndGenderDistribution/list',
    method: 'get',
    params: query
  })
}

// 查询年龄性别精准客流详细
export function getAgeAndGenderDistribution(id) {
  return request({
    url: '/energize/ageAndGenderDistribution/' + id,
    method: 'get'
  })
}

// 新增年龄性别精准客流
export function addAgeAndGenderDistribution(data) {
  return request({
    url: '/energize/ageAndGenderDistribution',
    method: 'post',
    data: data
  })
}

// 修改年龄性别精准客流
export function updateAgeAndGenderDistribution(data) {
  return request({
    url: '/energize/ageAndGenderDistribution',
    method: 'put',
    data: data
  })
}

// 删除年龄性别精准客流
export function delAgeAndGenderDistribution(id) {
  return request({
    url: '/energize/ageAndGenderDistribution/' + id,
    method: 'delete'
  })
}
